import { defineStore } from 'pinia'
import { getNowFormatDate } from '../utils/time'
export const useUserStore = defineStore('user', {
  //state是一个函数， 返回的是对应数据
  state: () => {
    return {
      nickname: '',
      role: ''
    }
  },

  getters: {
    loginTimeFormat() {
      return getNowFormatDate('yyyy-MM-dd')
    }
  },
  actions: {

  }
})